package com.gsafety.wellsfort.dao.course;

import com.gsafety.wellsfort.domain.model.course.LearningProgress;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;
import java.util.Map;

public interface LearningProgressDAO {
    int deleteByPrimaryKey(Integer id);

    int insert(LearningProgress record);

    int insertSelective(LearningProgress record);

    LearningProgress selectByPrimaryKey(Integer id);

    List<LearningProgress> selectByMapParam(Map<String,Object> param);

    int updateByPrimaryKeySelective(LearningProgress record);

    int updateByPrimaryKey(LearningProgress record);

    int deleteByParamMap(Map<String,Object> param);

    List<LearningProgress> selectByRangeDate(@Param("createdStart") Date startTime, @Param("createdEnd") Date endTime);
}